import Vue from 'vue'
import App from './App'
import uView from 'uview-ui';

import md5 from 'js-md5';
Vue.prototype.$md5 = md5;

Vue.use(uView);
Vue.config.productionTip = false

// 将跳转路由的方法加入vue原型链
import * as urlTo from '@/common/index.js'  
Vue.prototype.$urlTo = urlTo

// 全局注册加载组件
import kModel from '@/components/k-model/k-model.vue';
Vue.component('kModel',kModel)

import upImg from '@/components/upImg.vue'
Vue.component('upImg' , upImg)

import uniLoadMore from '@/components/uni-load-more/uni-load-more.vue'
Vue.component('uni-load-more' , uniLoadMore)

App.mpType = 'app'
const app = new Vue({
    ...App
})
app.$mount()
